package pers.lmd.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @TableName note
 */
@TableName(value = "note")
@Data
public class Note implements Serializable {
    /**
     * 请假表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 离开时间
     */
    @TableField(value = "leave_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime leaveTime;

    /**
     * 回来时间
     */
    @TableField(value = "back_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime backTime;

    /**
     * 去向
     */
    @TableField(value = "travel")
    private String travel;

    /**
     * 理由
     */
    @TableField(value = "reason")
    private String reason;

    /**
     * 审批转态
     */
    @TableField(value = "apply_status")
    private Integer applyStatus;

    /**
     * 学生id
     */
    @TableField(value = "sid")
    private Long sid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}